import { defaultTheme, defineUserConfig } from 'vuepress'
import { path } from '@vuepress/utils'

const navbar = [
    {
        // text:"经验分享",
        // children:[
        //     {
        //         text: "friend1",
        //         link: "/经验分享/friend1.md"
        //     },
        //     {
        //         text: "friend2",
        //         link: "/经验分享/friend2.md"
        //     },
        //     {
        //         text: "friend3",
        //         link: "/经验分享/friend3.md"
        //     }
        // ]
        text: "阳记",
        link: "/阳记.md"
    }
]

export default defineUserConfig({
    lang: 'zh-CN',
    title: 'Guide for preventing the Covid-19',
    // description: 'Covid-19 Guide',
    theme: defaultTheme({
        navbar: navbar
    }),
    base:'/guide-for-covid-19/',
    // dest: path.resolve(__dirname, '../../dist/vuepress'),
    // alias: {
    //     '@theme/Navbar.vue': path.resolve(__dirname, './components/Navbar.vue'),
    // },
    "host":'localhost',
    "port":8081,
})